<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>6.createApp和mount</title>
    <script src="./vue.global.js"></script>
</head>
<body>
    <div id="vueApp"></div>
    <script>
        window.app = Vue.createApp({
            data() {
                return {message:'技术胖'};
            },
            template:"<h2>{{message}}</h2>",
        });
        window.vm = app.mount("#vueApp");
        console.log(vm.$data.message);
    </script>
</body>
</html>